<?php
declare (strict_types=1);

namespace app\common\validate;

use think\Validate;

class UserAuthValidate extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'identity_z|身份证正面' => 'require',
        'identity_f|身份证反面' => 'require',
        'name|真实姓名'        => 'require|min:2|max:50',
        'idCard|身份证号'      => 'require|idCard',
    ];
}
